﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Crypt_Tranceiver
{
    public partial class Form_Pass : Form
    {
        public delegate void SendMessage(string message);
        public SendMessage MessageSent;

        public Form_Pass()
        {
            InitializeComponent();
        }

        private void maskedTextBox1_MaskInputRejected(object sender, MaskInputRejectedEventArgs e)
        {

        }

        private void bt_ok_Click(object sender, EventArgs e)
        {
            if ((this.MessageSent != null) && (this.tb_pass.Text.Length > 0))
            {
                MessageSent(this.tb_pass.Text);
                this.Close();
            }
            else
            {
                MessageBox.Show("请输入解密的密码！");
            }
        }

        
    }
}
